﻿namespace Calendar.Logic.Log
{
    public delegate void DLogEvent(LoggerMessage msg);
    public class LogEvent : LoggerEventHandler
    {
        private event DLogEvent _logEvent;

        public LogEvent(DLogEvent logEvent)
        {
            _logEvent += logEvent; 
        }

        protected override void log(LoggerMessage message)
        {
            _logEvent(message);
        }

        protected override void onShutdown()
        {

        }
    }
}
